package com.mrjy.integral.dao;

import java.util.List;
import java.util.Map;

import com.mrjy.common.dto.UserHappinessDto;
import com.mrjy.common.entity.HappinessInfo;
import com.mrjy.integral.dto.HappinessInfoNotCollectDTO;

public interface IHappinessInfoDao {
		
		int insert(HappinessInfo info);
		
		HappinessInfo queryById(int id);
		
		int updateById(HappinessInfo info);
			
		//根据ID删除
		int deleteByIds(int[] ids);
			
		//根据ID禁用、起用
		int updateDisableFlag(HappinessInfo info);

		int queryToTalLoveByUserIdAndIsCollect(HappinessInfo info);

		List<HappinessInfo> queryListByMap(Map<String, Object> paramMap);

		List<HappinessInfoNotCollectDTO> queryNotCollectListByUserId(Integer userId);

		int collectLove(HappinessInfo info);
		
		int collectLoveTimeTask();

		int makeWish(Map<String, Object> paramMap);

		UserHappinessDto queryHappinessByUserIdAndDate(UserHappinessDto dto);


		
}
